package com.qianya.system.manage.web.sys.model;

import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qianya.model.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 系统设置
 * </p>
 *
 * @author lhl
 * @since 2020-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysConfig对象", description="系统设置")
public class SysConfig implements Serializable {


    private static final long serialVersionUID = -1802865039022424639L;
    @TableId(value = "SET_ID", type = IdType.UUID)
    private String setId;

    @ApiModelProperty(value = "网站名称")
    @TableField("SET_NAME")
    private String setName;

    @ApiModelProperty(value = "访问地址")
    @TableField("SET_DOMAIN")
    private String setDomain;

    @ApiModelProperty(value = "关键字")
    @TableField("SET_KEYWORD")
    private String setKeyword;

    @ApiModelProperty(value = "描述")
    @TableField("SET_DESC")
    private String setDesc;

    @ApiModelProperty(value = "ICP备案")
    @TableField("SET_ICP")
    private String setIcp;

    @ApiModelProperty(value = "登录失败次数")
    @TableField("SET_LOGIN_FAIL_LIMIT")
    private Integer setLoginFailLimit;

    @ApiModelProperty(value = "登录失败重新登录限制时间")
    @TableField("SET_LOGIN_TIME_LIMIT")
    private Integer setLoginTimeLimit;

    @ApiModelProperty(value = "上次修改时间")
    @TableField("SET_UPDATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date setUpdateTime;

    @ApiModelProperty(value = "上次修改人")
    @TableField("SET_UPDATE_ID")
    private String setUpdateId;
    @ApiModelProperty(value = "ip断限制")

    @TableField(exist = false)
    private List<SysSetLimitIp> ipList;

}
